runtime.writeHeapBits.valid (field)
13 uses
runtime (current package)
mbitmap.go#L773: valid uintptr // number of bits in buf that are valid (including low)
mbitmap.go#L788: h.valid = h.low
mbitmap.go#L796: if h.valid+valid <= ptrBits {
mbitmap.go#L798: h.mask |= bits << h.valid
mbitmap.go#L799: h.valid += valid
mbitmap.go#L805: data := h.mask | bits<<h.valid // mask for this word
mbitmap.go#L806: h.mask = bits >> (ptrBits - h.valid) // leftover for next word
mbitmap.go#L807: h.valid += valid - ptrBits // have h.valid+valid bits, writing ptrBits of them
mbitmap.go#L851: zeros := (addr+size-h.addr)/goarch.PtrSize - h.valid
mbitmap.go#L855: z := ptrBits - h.valid
mbitmap.go#L859: h.valid += z
mbitmap.go#L869: if h.valid != h.low {
mbitmap.go#L871: m |= ^(uintptr(1)<<h.valid - 1) // don't clear existing bits above "valid"
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |